import Vue from 'vue'
import App from './App.vue'
import TypeNav from '@/components/TypeNav'
import Carousel from '@/components/Carousel'
import Pagination from '@/components/Pagination'
import store from "@/store";
import * as API from "@/api"
import { Button, MessageBox } from 'element-ui'

Vue.component(TypeNav.name, TypeNav);
Vue.component(Carousel.name, Carousel);
Vue.component(Pagination.name, Pagination);
Vue.config.productionTip = false
Vue.component(Button.name, Button);
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;

import '@/mock/mockServe'
import "swiper/css/swiper.css";
import router from '@/router';
import "@/plugins/validate";

new Vue({
  render: h => h(App),
  beforeCreate () {
    Vue.prototype.$bus = this;
    Vue.prototype.$API = API
  },
  router,
  store
}).$mount('#app')
